<style tyle="text/css">
  .modal-lg {
    width: 70%;
  }
  
</style>
<div class="modal-header">
  <h4 class="modal-title" ng-if="opeinfo.type == 1">首页头条</h4>
  <h4 class="modal-title" ng-if="opeinfo.type == 2">商信彩</h4>
</div>
<div class="modal-body">

  <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">

      <div class="form-group">
          <label class="col-xs-3 control-label">标题</label>
          <div class="col-lg-6">
              <input type="text" class="form-control" ng-model="opeinfo.title" ng-if="!opeinfo.openstate" placeholder="例:惠民旅游消费企业征集公告">
          </div>
          <div class="col-lg-6" >
              <input type="text" class="form-control" ng-model="opeinfo.title" ng-if="opeinfo.openstate" readonly>
          </div>
      </div>

      <div class="form-group">
            <label class="col-xs-3 control-label">内容</label>
            <div class="col-xs-6" ng-if="!opeinfo.openstate">
                <div class="ueditor" ng-model="opeinfo.info"></div>
            </div>
            <div class="col-md-6"  ng-if="opeinfo.openstate" ng-model="opeinfo.info" readonly>
                <span ng-bind-html="opeinfo.info"></span>
            </div>
        </div>

      <div class="form-group" >
          <label class="col-xs-3 control-label">标签</label>
          <div class="col-lg-6">
              <input type="text" class="form-control" ng-model="opeinfo.laber" ng-if="!opeinfo.openstate" placeholder="例:惠民">
          </div>
          <div class="col-lg-6" >
              <input type="text" class="form-control" ng-model="opeinfo.laber" ng-if="opeinfo.openstate" readonly>
          </div>
      </div>

      <div class="form-group">
          <label for="inputDate" class="col-xs-3 control-label">logo</label>
          <div class="col-xs-6" ng-if="!opeinfo.openstate">
              <img ng-src="{{opeinfo.logo}}" width="100%" height="200" ng-model="opeinfo.logo">
                <input type="file" nv-file-select uploader="uploader" / ng-hide="hide===true" ><br/>
                <ul class="list-group">
                  <li class="list-group-item" ng-repeat="item in uploader.queue">
                      文件名: <span ng-bind="item.file.name"></span>
                    <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                    <div class="progress mt10">
                      <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
                    </div>
                  </li>
                </ul>
         </div>
          <div class="col-lg-6" ng-if="opeinfo.openstate" >
              <img ng-src="{{opeinfo.logo}}" width="100%" height="200" ng-model="opeinfo.logo">
          </div>
      </div>

      <div class="form-group">
            <label for="inputDate" class="col-xs-3 control-label">图片</label>
            <div class="col-xs-6" ng-if="!opeinfo.openstate">
                <img ng-src="{{opeinfo.img}}" width="100%" height="200" ng-model="opeinfo.img">
                  <input type="file" nv-file-select uploader="img" / ng-hide="hide===true" ><br/>
                  <ul class="list-group">
                    <li class="list-group-item" ng-repeat="item in img.queue">
                        文件名: <span ng-bind="item.file.name"></span>
                      <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                      <div class="progress mt10">
                        <div class="progress-bar" role="progressbar" ng-style="{ 'width': img.progress + '%' }"></div>
                      </div>
                    </li>
                  </ul>
           </div>
            <div class="col-lg-6" ng-if="opeinfo.openstate" >
                <img ng-src="{{opeinfo.img}}" width="100%" height="200" ng-model="opeinfo.img">
            </div>
        </div>

   
     

  </form>

</div>

<div class="modal-footer">
    <button class="btn btn-success" type="button"  ng-if="!opeinfo.openstate" ng-click="save()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>

